<template>
  <div id="app">
    App
    <ul>
      <li>
        <router-link to="/home">首页</router-link>
      </li>
      <li>
        <router-link to="/login">登录</router-link>
      </li>
      <li>
        <router-link to="/detail?id=9999">商品详情</router-link> <br>
        <router-link to="/detail/9527">商品详情</router-link>
      </li>
    </ul>

    <router-view name="header" />
    <router-view /> <!-- 默认名称为 default -->
    <router-view name="footer" />
  </div>
</template>

<script>
export default {
  name: 'App',
  components: {
  }
}
</script>

<style>
</style>
